package com.nyist.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author yangxiaogen
 * @date 2021/1/29 14:27
 */
public interface MyWriteRule {

    /**
     * 收集服务器总共有多少台能够提供服务的机器，并放到list里面
     * @author yangxiaogen 
     * @date 2021/1/29 14:32
     * @param serviceInstances
     * @return org.springframework.cloud.client.ServiceInstance
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);

}
